﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="mydesk.aspx.cs" Inherits="mydesk" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
      <link href="../style.css" rel="stylesheet" type="text/css" />
      <script type="text/javascript">
function openurl(id)
{
    window.open('../mystudy/kecheng_play_temp.aspx?rid=' + id, 'kecheng_play', 'width=' + screen.width + ',height=' + screen.height + ',top=0,left=0,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes');
}
function jumpurl(id) {
    window.open('../Exam/StartExamframain.aspx?rid=' + id, 'kecheng_kaoshi_window', 'height=768,width=1024,top=0,left=0,toolbar=no,resizable=yes,menubar=no,location=no,status=no');
}
</script>
</head>
<body>
    <form id="form1" runat="server">  
    
    
    <div  style="margin-top:10px;height:55px;" class="header_back">
    <table style="width:100%">
                    <tr>
                        <td style="width: 20px">
                            <asp:HyperLink ID="HL1" runat="server" CssClass="font33" ImageUrl="~/images/selected.jpg">HyperLink</asp:HyperLink></td>
                        <td style="width: 100px">
                            <span class="font3"><span class="style20">
                                <asp:LinkButton ID="LB1" runat="server" CssClass="font33" OnClick="LB1_Click" >正在学习的课程</asp:LinkButton></span></span></td>
                        <td style="width: 22px">
                            <asp:HyperLink ID="HL2" runat="server" ImageUrl="~/images/selected.jpg">HyperLink</asp:HyperLink></td>
                        <td style="width: 100px">
                            <span class="font3"><span class="style20">
                                <asp:LinkButton ID="LB2" runat="server" CssClass="font33" OnClick="LB2_Click">已通过的课程</asp:LinkButton></span></span></td>
                        <td style="width: 22px">
                            <asp:HyperLink ID="HL4" runat="server" ImageUrl="~/images/selected.jpg" Visible="False">HyperLink</asp:HyperLink></td>
                        <td style="width: 100px">
                            <span class="font3"><span class="style20">
                                <asp:LinkButton ID="LB4" runat="server" CssClass="font33" OnClick="LB4_Click" Visible="False">未通过的课程</asp:LinkButton></span></span></td>
                    </tr>
                    <tr><td colspan="6" >
                        课程名称：<asp:TextBox ID="KeChengMingCheng" runat="server"></asp:TextBox>授课老师：<asp:TextBox ID="ShouKeLaoShi"
                            runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" 
                            Text="搜索" onclick="Button1_Click" />
                    </td></tr>
                </table>
    </div>
    <table style="width: 796px">
       
        <tr>
            <td style="width: 272px; height: 220px; vertical-align: top;" class="font_con table_con">
                <asp:GridView ID="GridView1" runat="server" 
                    AutoGenerateColumns="False"  Width="819px" DataKeyNames="id"   OnRowDataBound="GridView1_RowDataBound" CellPadding="0" ForeColor="Black" GridLines="Vertical"  cssclass="font33">
                    <Columns>
                        <asp:BoundField HeaderText="编号" />
                        <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                            SortExpression="id" Visible="False" />
                        <asp:TemplateField HeaderText="课程名称">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" CommandArgument='<%#Eval("id")%>' runat="server" Text='<%# Eval("name", "{0}") %>'
                                    Width="360px" Font-Underline="False"  ForeColor="Black"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:BoundField DataField="laoshi" HeaderText="授课老师" InsertVisible="False" ReadOnly="True"
                             Visible="True" />
                        <asp:TemplateField HeaderText="自我测试">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton2" CommandArgument='<%#Eval("id")%>' runat="server" Text="自我测试" Font-Underline="False"  ForeColor="Black"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>

                </asp:GridView>
            </td>
        </tr>
                    <tr>
            <td style="width: 272px; height: 20px;padding-left:70px;" class="webdeyer">
                 <webdiyer:AspNetPager ID="Pager" runat="server" CurrentPageButtonClass="" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" PageSize="10" PrevPageText="上一页" LayoutType="Div"
                        InvalidPageIndexErrorMessage="抱歉,页码超出范围" CustomInfoHTML="页次:%CurrentPageIndex%/%PageCount% 共%RecordCount%条"
                        PageIndexOutOfRangeErrorMessage="抱歉,页码超出范围" ShowCustomInfoSection="Left" ShowPageIndexBox="Always"
                        TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到第" AlwaysShow="true" HorizontalAlign="Right"
                        Direction="LeftToRight" CustomInfoTextAlign="Right" ShowPageIndex="False" OnPageChanging="pager_PageChanging"
                        ShowMoreButtons="False" Width="750px" ShowNavigationToolTip="True" CustomInfoClass="PagerClassCss"
                        SubmitButtonClass="page_go" PageIndexBoxClass="txt_class" CssClass="page_a">
                    </webdiyer:AspNetPager>
               </td>
        </tr>
        <tr>
            <td style="width: 272px; height: 20px">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" EnableViewState="true" ConnectionString="<%$ ConnectionStrings:gConnectionString %>"
                    >

                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td style="width: 272px; height: 20px">
                <asp:TextBox ID="txtzxd1" runat="server" Visible="False"></asp:TextBox>
                <asp:TextBox ID="txtzxd2" runat="server" Visible="False"></asp:TextBox>
                <asp:TextBox ID="txtzxd3" runat="server" Visible="False"></asp:TextBox></td>
        </tr>
    </table>
</form>
</body>
</html>


